package com.school.information.enums.result;

import com.school.information.core.IResultStatus;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 基础数据信息异常代码
 */
@Getter
@AllArgsConstructor
public enum BasicResultEnum implements IResultStatus {
    // 学校信息业务异常
    SCHOOL_KEY_EXISTED(41000, "学校编码已存在"),
    SCHOOL_NAME_EXISTED(41001, "学校名称已存在"),
    SCHOOL_UK_INDEX_EXCEPTION(41002, "学校唯一索引异常"),
    ADD_SCHOOL_FAIL(41003, "新增学校信息失败"),
    UPDATE_SCHOOL_FAIL(41004, "更新学校信息失败"),
    DEL_SCHOOL_FAIL(41005, "删除学校信息失败"),
    SCHOOL_ADDRESS_LNG_LAT_FAIL(41006, "地址转换经纬度失败"),
    ;

    private Integer code;
    private String msg;
}